home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer Plus 2007
/
Programmer-Plus-2007.iso
/
Programming
/
Borland Plateform
/
Turbo C v3.0
/
INTRO8.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1992-02-17
|
305 b
|
15 lines
//INTRO8.CPP--Example from Chapter 3, " An Introduction to C++"
#include <iostream.h>
int main()
{
int val = 1;
cout << "\nval is " << val++ << " and then post-incremented\n";
cout << "val is now " << val << "\n";
cout << "val is pre-incremented to " << ++val << '\n';
return 0;
}